﻿using LDM.Business.ServiceAPI.Model.ViewModel;
using LDM.Framework.WebApiClientCore;
using Microsoft.Extensions.DependencyInjection;
using WebApiClientCore;
using WebApiClientCore.Attributes;

namespace LDM.Business.ServiceAPI.Svc
{
    /// <summary>
    /// 订单服务
    /// </summary>
    [HttpApiOptions("LDM.Business.API")]
    //[UriFilter]
    [LoggingFilter]
    [Timeout(10 * 1000)] // 10s超时
    //[HttpHost("https://petstore.swagger.io/v2/")]
    public interface IOrderService : IHttpApi, IScoped
    {

        [HttpPost("Order/GetRandom")]
        public Task<IEnumerable<WeatherForecast>> GetRandom();
    }
}
